import './style.scss'
import App from './App.vue'
import router from "./router";
import {createApp} from "vue";
import {createPinia} from "pinia";

const app = createApp(App)

app.use(router).use(createPinia())

app.mount('#app').$nextTick(() => {
    // Remove Preload scripts loading
    postMessage({payload: 'removeLoading'}, '*')

    // Use contextBridge
    window.ipcRenderer?.on('main-process-message', (_event, message) => {
        console.log(message)
    })

    console.log()
})
